///////////////////////////////////////////////////////////////////////////////
//
// DBT86 Project : Runtime System : memops.h
// Copyright (C) 2004 by Ben Hertzberg and Stanford University
// All Rights Reserved
//
// This code may not be used for any purpose without the express written
// consent of the author.  See the LICENSE.txt file for details.
//
//
// DESCRIPTION
//
// This header file defines a set of routines through which all memory access
// is performed for the guest system within the host system's address space.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef __MEMOPS_H__
#define __MEMOPS_H__

#include "common.h"

UINT8 LoadB(IVAL va, bool uncached = false);
UINT16 LoadH(IVAL va, bool uncached = false);
UINT32 LoadW(IVAL va, bool uncached = false);
UINT64 LoadD(IVAL va, bool uncached = false);
void StoreB(IVAL val, IVAL va, bool uncached = false);
void StoreH(IVAL val, IVAL va, bool uncached = false);
void StoreW(IVAL val, IVAL va, bool uncached = false);
void StoreD(IVAL val, IVAL va, bool uncached = false);

#endif
